package com.sunwayhorizo.health.ets.base.persistent.pk;

import java.io.Serializable;

import java.sql.Timestamp;


public class EtCncptlistAssgnsPK implements Serializable {
    public Timestamp conceptActivationDate;
    public String conceptId;
    public String conceptlistId;

    public EtCncptlistAssgnsPK() {
    }

    public EtCncptlistAssgnsPK(Timestamp conceptActivationDate, 
                               String conceptId, String conceptlistId) {
        this.conceptActivationDate = conceptActivationDate;
        this.conceptId = conceptId;
        this.conceptlistId = conceptlistId;
    }

    public boolean equals(Object other) {
        if (other instanceof EtCncptlistAssgnsPK) {
            final EtCncptlistAssgnsPK otherEtCncptlistAssgnsPK = (EtCncptlistAssgnsPK) other;
            final boolean areEqual = 
                (otherEtCncptlistAssgnsPK.conceptActivationDate.equals(conceptActivationDate) && otherEtCncptlistAssgnsPK.conceptId.equals(conceptId) && otherEtCncptlistAssgnsPK.conceptlistId.equals(conceptlistId));
            return areEqual;
        }
        return false;
    }

    public int hashCode() {
        return super.hashCode();
    }
}
